package wangjg.coco.views;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;

import wangjg.coco.Activator;

public class PreferenceInitializer extends AbstractPreferenceInitializer {

	public void initializeDefaultPreferences() {
		IPreferenceStore store = Activator.getDefault().getPreferenceStore();
		// for Explorer Preference
		store.setDefault(ExplorerPreferencePage.CMD, "Explorer /select, {0}");
		IPropertyChangeListener pcl = new IPropertyChangeListener(){
			@Override
			public void propertyChange(PropertyChangeEvent event) {
				event.getProperty();
			}
			
		};
		store.addPropertyChangeListener(pcl);
	}
}
